home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: Solution to my own problem!
- Date: 10 Mar 1996 12:21:08 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4hvdjkINN1qr@keats.ugrad.cs.ubc.ca>
- References: <31431EC7.7632@aol2.com>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <31431EC7.7632@aol2.com>, Neil <neil@aol2.com> wrote:
- >here goes..
- > {
- > ifstream infile("menu.htm", ios::in);
- > while (!infile.eof())
- > cout.put( (char) infile.get() );
- > }
-
- That is not C. I think you have the wrong newsgroup.
-
- >What this does is take "menu.htm" and display it to the screen
- >which is pretty useful if you're writing a CGI script/app.
-
- And since 99.9% CGI scripts run on UNIX machines which all have a Bourne
- interpreter, the following will also do it:
-
- #!/bin/sh
- cat menu.htm
- --
-
-